package com.dlu.safe_construction.service;

import com.dlu.safe_construction.common.ApiResult;
import com.dlu.safe_construction.dto.AreaInfoDTO;
import com.dlu.safe_construction.dto.AreaNumDTO;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.dlu.safe_construction.mapper.AreaMapper;
import com.dlu.safe_construction.model.Area;
/**
 * Created by  lijiaxing on 2022/3/30 20:54
 *
 * @author lijiaxing
 */
public interface AreaService{

    ApiResult<Void> add(Area area);

    ApiResult<Void> deleteById(String areaId);

    ApiResult<Void> edit(AreaInfoDTO areaInfoDTO);

    ApiResult<List<Area>> list();

    ApiResult<AreaInfoDTO> searchByAreaId(String areaId);

    ApiResult<AreaNumDTO> countAll();

}
